package exam.demo21;

import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] arr = new int[n];
        for(int i = 0; i < n; i++) {
            arr[i] = i + 1;
        }
        if(n > 2) {
            int i = 0;
            while(i < arr.length - 1) {
                int tmp = arr[i];
                arr[i] = arr[i+1];
                arr[i+1] = tmp;

                i += 2;
            }
        }
        for(int i = 0; i < n; i++) {
            System.out.print(arr[i] + " ");
        }
    }
}
